package com.xujianlun.cpms.service.sys;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xujianlun.cpms.dto.UserDto;
import com.xujianlun.cpms.dto.UserPassWordDto;
import com.xujianlun.cpms.entity.sys.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author xujianlun
 * @since 2022-11-14
 */
public interface IUserService extends IService<User> {

    UserDto login(UserDto userDto);

    User register(UserDto userDto);

    void updatePassword(UserPassWordDto userPassWordDto);

    String findPassWord(String email, String userName);

    void updatePasswordByEmailUserName(String email, String passWord, String userName);

    Page<User> getSchoolPage(Page<User> userPage, String nickName, String phone, String address, String local,String localName);
}
